<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!--//<%//@//page //contentType="application/msword;charset=utf-8"%>-->

<%    
response.setContentType("application/doc");    
response.setHeader("Content-Disposition", "inline; filename=\"test.doc\"");    
%> 
<html xmlns=" http://www.w3.org/1999/xhtml">
  <head>
    <!-- <meta Content-Disposition="attachment; filename=人员资料.doc" /> -->   
  
    
    <title>人员资料</title>
  </head>
  
  <body>
<table class="TableTop" width="100%">
   <tbody><tr>
      <td class="left"></td>
      <td class="center subject">
         人员资料</td>
      <td class="right"></td>
   </tr>
</tbody></table>

<table id="table1" width="90%" align="center" border=1 style="border-collapse:collapse">
    <tbody><tr>
      <td width="100" valign="bottom" nowrap="nowrap" class="TableData">人员编号：</td>
      <td width="160" valign="bottom" class="TableData">${ryzl.bh}</td>
      <td width="120" align="center" valign="bottom" class="TableData">图片</td>
      <td><img id="userPicImg" src="${ryzl.zp}<c:if test="${ryzl.zp==null}">images/pic.jpg</c:if>" width="72" height="103"></td>
    </tr>
    </tbody><tbody id="tr_webmail" style="display: none;">
   </tbody>
    <tbody>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">姓名：</td>
        <td class="TableData">${ryzl.xm}</td>
        <td class="TableData">性别：</td>
        <td class="TableData">${ryzl.xb }</td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">出生日期：</td>
        <td class="TableData">${ryzl.csrqString}</td>
        <td class="TableData">参加工作日期：<br/>
          参加计生工作日期：</td>
        <td class="TableData">${ryzl.cjgzrqString}
        <br/>  ${ryzl.cjgzrqString}</td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">婚姻状况：</td>
        <td class="TableData">
         <c:if test="${ryzl.hyzk==1}"> 未婚</c:if>
        <c:if test="${ryzl.hyzk==2}"> 已婚</c:if>
       <c:if test="${ryzl.hyzk==3}"> 离婚</c:if>
       <c:if test="${ryzl.hyzk==4}"> 丧偶</c:if>
              </td>
        <td class="TableData">政治面貌：</td>
        <td class="TableData">
           <c:if test="${ryzl.zzmm==1}"> 群众</c:if>
           <c:if test="${ryzl.zzmm==2}"> 党员</c:if>
  		 <c:if test="${ryzl.zzmm==3}"> 团员</c:if>
        </td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">民族：</td>
        <td class="TableData">${ryzl.mz}</td>
        <td class="TableData">籍贯：</td>
        <td class="TableData">${ryzl.jg}</td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">学历：</td>
        <td class="TableData">${ryzl.xl}</td>
        <td class="TableData">专业：</td>
        <td class="TableData">${ryzl.zy}</td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">毕业院校：</td>
        <td class="TableData">${ryzl.byyx}</td>
        <td class="TableData">联系地址：</td>
        <td class="TableData">${ryzl.lxdz}</td>
      </tr>
      <tr>
        <td class="TableData" nowrap="nowrap">离职时间：</td>
        <td class="TableData">${ryzl.lzsjString}</td>
        <td class="TableData">身份证号：</td>
        <td class="TableData">${ryzl.sfzh}</td>
      </tr>
      <tr>
        <td class="TableData" nowrap="nowrap">联系电话：</td>
        <td class="TableData">${ryzl.lxdh}</td>
        <td class="TableData">基本工资：</td>
        <td class="TableData">${ryzl.jbgz}</td>
      </tr>
      <tr>
        <td colspan="4" nowrap="nowrap" class="TableData">部门：
         ${ryzl.zdByBmbh.zdqc}
           
          　　职务：
             ${ryzl.zdByZwbh.typename}
         　　
          　职称：
          ${ryzl.zdByZcbh.typename}
           岗位等级：${ryzl.gwdj}
          </td>
      </tr>
      <tr>
        <td class="TableData" nowrap="nowrap">人员属性：</td>
        <td class="TableData">${ryzl.rysx}</td>
        <td class="TableData">合同期限：</td> <td class="TableData">${ryzl.htqxString} 至${ryzl.htqx2String}</td>
      </tr>
      <tr>
        <td class="TableData" nowrap="nowrap">工作状态：</td>
        <td colspan="3" class="TableData">${ryzl.gzzt }</td>
      </tr>
      <tr>
        <td class="TableData" nowrap="nowrap">个人简历：</td>
        <td colspan="3" class="TableData">${ryzl.grjl}</td>
      </tr>
      <tr>
        <td class="TableData" nowrap="nowrap">备注：</td>
        <td colspan="3" class="TableData">${ryzl.bz}</td>
      </tr>
   
  </tbody></table>
  <script type="text/javascript">
    function daochu() {
		var oWD = new ActiveXObject("Word.Application");
		oWD.WindowState = 2;
		var oDC = oWD.Documents.Add("", 0, 1);	
		var oRange = oDC.Range(0, 1);
		var sel = document.body.createTextRange();
		sel.moveToElementText(table1);
		sel.select();
		sel.execCommand("Copy");
		oRange.Paste();
		oWD.Application.Visible = true;
	}
  </script>
  </body>
</html>
